from aiogram import F as f, Router
from aiogram.filters import CommandStart, Command
from aiogram.types import Message

import app.keyboards as kb

router = Router()


@router.message(CommandStart())
async def cmd_start(message: Message):
    await message.reply(f"Привет, я бот", reply_markup=kb.settings)


@router.message(f.text == "Как дела?")
async def how_are_you(message: Message):
    await message.answer("Хорошо, а ты?")


@router.message(Command("help"))
async def cmd_help(message: Message):
    await message.answer("Командa: /help")

# Команда, которая получает ID фото из фото
@router.message(f.photo)
async def get_photo(message: Message):
    await message.answer(f"ID фото: {message.photo[-1].file_id}")


@router.message(Command("get_photo"))
async def get_photo(message: Message):
    await message.answer_photo (photo="AgACAgIAAxkBAANzZoVLI9MLoNOvz41hoJx_g8LWsIgAApHYMRvrZClIvsxj7PhM4SsBAAMCAAN5AAM1BA", captian = "Картинка")